package com.aooci.ordercat.vo;

import java.util.Calendar;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

import com.aooci.ordercat.enums.OrderStatus;
import com.aooci.ordercat.enums.OrderType;

@SuppressWarnings("restriction")
public class OrdercatVo {
	private final StringProperty id;
	private final StringProperty type; 
	private final StringProperty status; 
	private final StringProperty creation;
	private final StringProperty total;
	
	
	public OrdercatVo() {
		this(0, null, null, null, 0);
	}
	public OrdercatVo(int id, OrderType type, OrderStatus status, Calendar creation, float total) {
		super();
		this.id = new SimpleStringProperty(id+"");
		this.type = new SimpleStringProperty(type.toString());
		this.status = new SimpleStringProperty(status.toString());
		this.creation = new SimpleStringProperty("");
		this.total = new SimpleStringProperty(Float.toString(total));
	}
	public StringProperty idProperty() {
		return id;
	}
	
	public StringProperty typeProperty() {
		return type;
	}
	public StringProperty statusProperty() {
		return status;
	}
	public StringProperty creationProperty() {
		return creation;
	}
	public StringProperty totalProperty() {
		return total;
	}
	public String getId() {
		return id.get();
	}
	public void setId(String id) {
		this.id.set(id);
	}
	public String getType() {
		return type.get();
	}
	public void setType(String type) {
		this.type.set(type);
	}
	public String getStatus() {
		return status.get();
	}
	public void setStatus(String status) {
		this.status.set(status);
	}
	public String getCreation() {
		return creation.get();
	}
	public void setCreation(String creation) {
		this.creation.set(creation);
	}
	public String getTotal() {
		return total.get();
	}
	public void setTotal(String total) {
		this.total.set(total);
	}

}
